/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package swing;

import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 *
 * @author Iskandar Sarkawi
 */
public class Example2a_GUI extends JFrame{

    private JLabel label1;

    public Example2a_GUI(){
        super("Simple Text Display");
        setLayout(new FlowLayout());

        label1 = new JLabel("This is a sentence");
        label1.setToolTipText("This is just a demo of a tool tip");
        add(label1);
    }

}
